/* 
* Copyright (C) 2011-2018 ShenZhen iBOXSaaS Information Technology Co.,Ltd. 
* 
* All right reserved. 
* 
* This software is the confidential and proprietary 
* information of iBOXSaaS Company of China. 
* ("Confidential Information"). You shall not disclose 
* such Confidential Information and shall use it only 
* in accordance with the terms of the contract agreement 
* you entered into with iBOXSaaS inc. 
* 
*/

package org.iboxpay.open.common.constants;

/**
 * 
 * ResultEnums.java
 * @author xuxiao
 * @date 2018/06/19
 */
public enum ResultEnums {
	/** 成功 */
	success("1", "成功"),
	/** 系统异常 */
	authCenterError("OPEN0001", "系统异常"),
	/** zuul route异常 */
	routeError("OPEN0002", "服务繁忙，请稍后重试"),
	/** token检验异常 */
	tokenSystemError("OPENTOKEN0001", "token验证异常"),
	/** token无效 */
	tokenInvalid("OPENTOKEN0002", "token无效"),
	/** token过期 */
	tokenExpired("OPENTOKEN0003", "token过期"),
	/** 未找到token信息 */
	tokenMiss("OPENGATEWAY0001", "未找到token信息"),
	/** scope检验不通过 */
	scopeCheckFail("OPENGATEWAY0002", "scope校验不通过"),
	
	
	
	/** 请求参数不可为空 */
	paramNotNull("OPENPAVAL0001", "请求参数不可为空"),
	/** appId不正确 */
	appIdIncorrect("OPENPAVAL0002", "appId不正确"),
	/** app状态异常 */
	appStatusUnusual("OPENPAVAL0003", "app状态异常"),
	/** 应用凭据不正确 */
	appSecretIncorrect("OPENPAVAL0004", "应用凭据不正确"),
	/** 授权码不正确 */
	authCodeIncorrect("OPENPAVAL0005", "授权码不正确"),
	/** 授权类型不正确 */
	grantTypeIncorrect("OPENPAVAL0006", "授权类型不正确"),
	/** 响应类型不正确 */
	responseTypeIncorrect("OPENPAVAL0007", "响应类型不正确"),
	/** 作用域不正确 */
	scopeIncorrect("OPENPAVAL0008", "作用域不正确"),
	/** 应用不可授权 */
	appUnableAuth("OPENPAVAL0009", "应用不可授权"),
	/** 刷新token不正确 */
	refreshTokenIncorrect("OPENPAVAL0010", "刷新token不正确"),
	/** openId不正確 */
	openIdIncorrect("OPENPAVAL0011", "openId不正確"),
	
	/** 授权码不存在 */
	authCodeNotExists("OPENBUSS0001", "授权码不存在"),
	/** token生成异常 */
	tokenGenerateError("OPENBUSS0002", "token生成异常"),
	/** 刷新token不存在 */
	refreshTokenNotExists("OPENBUSS0003", "刷新token不存在"),
	/** token类型不正确 */
	tokenTypeIncorrect("OPENBUSS0004", "token类型不正确 "),
	/** 刷新token不可访问资源 */
	refreshTokenCanNotAccRes("OPENBUSS0006", "刷新token不可访问资源"),
	/** 用户登录检验异常 */
	userLoginValidateError("OPENBUSS0007", "用户登录检验异常"),
	;
	
	private String code;
	
	private String desc;

	private ResultEnums(String code, String desc) {
		this.code = code;
		this.desc = desc;
	}

	public String getCode() {
		return code;
	}

	public String getDesc() {
		return desc;
	}
	
}
